import axios from '@/fetch'

export function getetlist(data) {
  return axios({
    url: "/customermanager/findall",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params:data
  })
}

export function addexpert(data) {
  return axios({
    url: "/customermanager/save",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    data:data
  })
}

export function delexpert(data) {
  return axios({
    url: "/customermanager/delete",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params:data
  })
}
export function upexpert(id,data) {
  return axios({
    url: "/customermanager/update",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params:id,
    data:data
  })
}

export function getexpertid(data) {
  return axios({
    url: "/customermanager/findone",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params:data,
  })
}

export function etqueryid(data) {
  return axios({
    url: "/customermanager/findbynumber",
    headers: {'Content-Type': 'application/json'},
    method: "post",
    params: data
  })
}
